<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:76:"D:\wwwroot\fangcms_city_add\public/../application/home\view\xiaoqu\info.html";i:1493980261;s:78:"D:\wwwroot\fangcms_city_add\public/../application/home\view\public\layout.html";i:1493431594;s:75:"D:\wwwroot\fangcms_city_add\public/../application/home\view\xiaoqu\nav.html";i:1493281529;s:78:"D:\wwwroot\fangcms_city_add\public/../application/home\view\public\footer.html";i:1493803247;}*/ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<!-- manifest="cache.manifest" -->
<head>
    <meta charset="utf-8" />
    <title><?php echo $seo['title']; ?></title>
    <meta name="keywords" content="<?php echo $seo['keys']; ?>" />
    <meta name="description" content="<?php echo $seo['desc']; ?>" />
    <link type="text/css" rel="stylesheet"  href="__CSS__/format_dom.css"/>
    <link type="text/css" rel="stylesheet"  href="__CSS__/main.css"/>
    <!--[if lte IE 8]>
    <script src="__JS__/ie/html5shiv.js"></script>
    <![endif]-->
    <!--[if IE 6]>
    <script type="text/javascript" src="__JS__/DD_belatedPNG.js"></script>
    <script type="text/javascript">DD_belatedPNG.fix("*")</script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
</head>
<body>
<div>
    <div class="top_line">
        <div class="main">
            <ul>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 1): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                <li><a href="<?php echo $url; ?>" title="<?php echo $vo['title']; ?>" target="<?php echo $vo['open_type']; ?>" <?php if($vo['model'] == $controller): ?>class="on"<?php endif; ?>><?php echo $vo['title']; ?></a></li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                <li><a href="<?php echo url('Agency/index'); ?>">经纪人</a></li>
            </ul>
            <?php if(empty($userInfo) || (($userInfo instanceof \think\Collection || $userInfo instanceof \think\Paginator ) && $userInfo->isEmpty())): ?>
            <span><a href="<?php echo url('user.login/index'); ?>" >登录</a></span>
            <span><a href="<?php echo url('user.login/reg'); ?>" >注册</a></span>
            <?php else: ?>
            <div style="float:right;color:#fff;"><em><?php echo $userInfo['nickname']; ?></em>,欢迎您的到来 <a href="<?php echo url('user.index/index'); ?>">会员中心</a> | <a href="<?php echo url('user.login/logout'); ?>">退出</a></div>
            <?php endif; ?>
        </div>
    </div>
    <div class="top_nav">
        <div class="top">
            <span class="logo"><img src="<?php echo $site['pcLogo']; ?>" width="80" height="64"></span>
            <div class="city city-box"><span class="city_span"></span><?php echo $cityInfo['name']; ?></div>
            <div class="city_box" id="CPM" style="display:none;">
                <div class="cities-con">
                    <p class="tit">选择城市 <a href="<?php echo url('Index/index@www'); ?>" class="gd_btn">更多城市</a></p>
                    <ul class="cities-opts clearfix">
                        <?php if(is_array($city) || $city instanceof \think\Collection || $city instanceof \think\Paginator): $i = 0; $__LIST__ = $city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <li class="clearfix">
                            <em class="icons"><?php echo $key; ?></em>
                            <p>
                                <?php if(is_array($vo) || $vo instanceof \think\Collection || $vo instanceof \think\Paginator): $i = 0; $__LIST__ = $vo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
                                <a <?php if($val['is_hot'] == 1): ?>class="highlight"<?php endif; ?> href="<?php echo url('Index/index@'.$val['domain']); ?>"><?php echo $val['name']; ?></a>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </p>
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                    <i></i>
                </div>
                <a href="javascript:;" class="close_btn">×</a>
            </div>
            <div class="nav t_mar">
                <ul>
                    <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 1): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                    <li><a href="<?php echo $url; ?>" title="<?php echo $vo['title']; ?>" target="<?php echo $vo['open_type']; ?>" <?php if($vo['model'] == $controller): ?>class="on"<?php endif; ?>><?php echo $vo['title']; ?></a></li>
                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    
    <div class="h_l_s overflow_h">
        <form action="<?php echo url('Loupan/index'); ?>" method="get" id="search-form">
            <div class="h_l_s_box">
<span class="h_l_input">
<input name="keyword" type="text" class="h_l_i" id="keyword" placeholder="请输入楼盘名称">
<a href="javascript:;" class="but03" id="search-btn">搜索</a>
</span>
                <a href="<?php echo url('Map/index'); ?>" class="but04">地图找房</a>
            </div>
        </form>
    </div>
    
</div>

<div class="main garden">
    <div class="position">
    <p>
        <span>更新时间：<?php echo date("Y年m月d日"); ?></span>您当前的位置：<a href="<?php echo url('Index/index'); ?>"><?php echo $site['title']; ?></a> > <a href="<?php echo url('Xiaoqu/index'); ?>">小区</a>&gt; <?php echo $info['title']; ?>
    </p>
</div>
<div class="garden_titl">
    <h2><?php echo $info['title']; ?></h2>
    <p>[<?php echo $info['city_name']; ?> <?php echo $info['area_name']; ?>] <?php echo $info['address']; ?></p>
</div>
<div class="garden-anchor">
    <a href="<?php echo url('Xiaoqu/detail',['id'=>$info['id']]); ?>" <?php if($action=='detail'): ?> class="on" <?php endif; ?>>小区概况</a>
    <a <?php if($action=='used'): ?> class="on" <?php endif; ?>  href="<?php echo url('Xiaoqu/used',['id'=>$info['id']]); ?>">小区二手房(<?php echo $info['second_num']; ?>)</a>
    <a <?php if($action=='rental'): ?> class="on" <?php endif; ?>  href="<?php echo url('Xiaoqu/rental',['id'=>$info['id']]); ?>">小区出租房(<?php echo $info['chuzu_num']; ?>)</a>
    <a <?php if($action=='pic'): ?> class="on" <?php endif; ?>  href="<?php echo url('Xiaoqu/pic',['id'=>$info['id']]); ?>">小区相册</a>
    <a <?php if($action=='info'): ?> class="on" <?php endif; ?>  href="<?php echo url('Xiaoqu/info',['id'=>$info['id']]); ?>">周边配套</a>
    <a href="<?php echo url('Xiaoqu/index',['area'=>$info['area'],'type'=>0,'year'=>0,'sort'=>0]); ?>">附近小区</a>
</div>
    <div class="garden_md">
        <div class="fy_img clearfix">
            <table class="xq_tab" style="width:1180px;">
                <tr>
                    <td class="td_t">二手房源</td>
                    <td><a href="<?php echo url('Xiaoqu/used',['id'=>$info['id']]); ?>"><?php echo $info['second_num']; ?></a>套</td>
                    <td class="td_t">出租房源</td>
                    <td><a href="<?php echo url('Xiaoqu/rental',['id'=>$info['id']]); ?>"><?php echo $info['chuzu_num']; ?></a>套</td>

                </tr>
                <tr>
                    <td class="td_t">停车位</td>
                    <td><?php echo $info['attr']['chewei']; ?></td>
                    <td class="td_t">绿化率</td>
                    <td><?php echo $info['attr']['lhl']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">楼盘类型</td>
                    <td><?php echo implode(',',$info['estate_type_name']); ?></td>
                    <td class="td_t">建筑年代</td>
                    <td><?php echo $info['niandai']; ?>年</td>
                </tr>
                <tr>
                    <td class="td_t">总户数</td>
                    <td><?php echo $info['attr']['hushu']; ?></td>
                    <td class="td_t">容积率</td>
                    <td><?php echo $info['attr']['rjl']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">建筑类别</td>
                    <td><?php echo $info['attr']['jzlb']; ?></td>
                    <td class="td_t">开发商</td>
                    <td><?php echo $info['attr']['kfs']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">装修情况</td>
                    <td><?php echo $info['attr']['zxqk']; ?></td>
                    <td class="td_t">产权</td>
                    <td><?php echo $info['attr']['chanquan']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">物业费</td>
                    <td><?php echo $info['attr']['wuyefee']; ?></td>
                    <td class="td_t">楼盘朝向</td>
                    <td><?php echo $info['attr']['loupanzhaoxiang']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">小区地址</td>
                    <td colspan="3"><?php echo $info['address']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">物业公司</td>
                    <td colspan="3"><?php echo $info['attr']['wygs']; ?></td>
                </tr>
                <tr>
                    <td class="td_t">道路交通</td>
                    <td colspan="3"><?php echo $info['attr']['daolujiaotong']; ?></td>
                </tr>
            </table>
        </div>
        <div class="fy_img garden_xc">
            <div class="title03"><span class="title-selected">配套信息</span></div>
            <table class="xq_tab">
                <?php $peitao=array_filter($info['peitao']); if(!(empty($peitao) || (($peitao instanceof \think\Collection || $peitao instanceof \think\Paginator ) && $peitao->isEmpty()))): if(!(empty($info['peitao']['xuexiao']) || (($info['peitao']['xuexiao'] instanceof \think\Collection || $info['peitao']['xuexiao'] instanceof \think\Paginator ) && $info['peitao']['xuexiao']->isEmpty()))): ?>
                <tr>
                    <th width="10%">学校</th>
                    <td colspan="90%"><?php echo $info['peitao']['xuexiao']; ?></td>
                </tr>
                <?php endif; if(!(empty($info['peitao']['gouwu']) || (($info['peitao']['gouwu'] instanceof \think\Collection || $info['peitao']['gouwu'] instanceof \think\Paginator ) && $info['peitao']['gouwu']->isEmpty()))): ?>
                <tr>
                    <th>购物</th>
                    <td><?php echo $info['peitao']['gouwu']; ?></td>
                </tr>
                <?php endif; if(!(empty($info['peitao']['yiyuan']) || (($info['peitao']['yiyuan'] instanceof \think\Collection || $info['peitao']['yiyuan'] instanceof \think\Paginator ) && $info['peitao']['yiyuan']->isEmpty()))): ?>
                <tr>
                    <th>医院</th>
                    <td><?php echo $info['peitao']['yiyuan']; ?></td>
                </tr>
                <?php endif; if(!(empty($info['peitao']['shenghuo']) || (($info['peitao']['shenghuo'] instanceof \think\Collection || $info['peitao']['shenghuo'] instanceof \think\Paginator ) && $info['peitao']['shenghuo']->isEmpty()))): ?>
                <tr>
                    <th>生活</th>
                    <td><?php echo $info['peitao']['shenghuo']; ?></td>
                </tr>
                <?php endif; if(!(empty($info['peitao']['yule']) || (($info['peitao']['yule'] instanceof \think\Collection || $info['peitao']['yule'] instanceof \think\Paginator ) && $info['peitao']['yule']->isEmpty()))): ?>
                <tr>
                    <th>娱乐</th>
                    <td><?php echo $info['peitao']['yule']; ?></td>
                </tr>
                <?php endif; if(!(empty($info['peitao']['canyin']) || (($info['peitao']['canyin'] instanceof \think\Collection || $info['peitao']['canyin'] instanceof \think\Paginator ) && $info['peitao']['canyin']->isEmpty()))): ?>
                <tr>
                    <th>餐饮</th>
                    <td><?php echo $info['peitao']['canyin']; ?></td>
                </tr>
                <?php endif; else: ?>
                <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=oSxCtoIssCCFFb6WtqfrQrtO"></script>
                <script src="__JS__/peitao.js"></script>
                <tr>
                    <th width="10%">学校(<span id="school_total"></span>)</th>
                    <td width="90%"><span id="school_con"></span></td>
                </tr>
                <tr>
                    <th>购物(<span id="shop_total"></span>)</th>
                    <td><span id="shop_con"></span></td>
                </tr>
                <tr>
                    <th>医院(<span id="yiyuan_total"></span>)</th>
                    <td><span id="yiyuan_con"></span></td>
                </tr>
                <tr>
                    <th>生活(<span id="life_total"></span>)</th>
                    <td> <span id="life_con"></span></td>
                </tr>
                <tr>
                    <th>娱乐(<span id="yule_total"></span>)</th>
                    <td> <span id="yule_con"></span></td>
                </tr>
                <tr>
                    <th>餐饮(<span id="food_total"></span>)</th>
                    <td><span id="food_con"></span></td>
                </tr>
                <div id="allmap" style="display:none;"></div>
                <script type="text/javascript">
                    var lng = '<?php echo $info['lng']; ?>';
                    var lat = '<?php echo $info['lat']; ?>';
                    var streetView = 0;
                    BMapApplication.init({'lng' : lng, 'lat' : lat, 'mapContainerId' : 'allmap'});
                    BMapApplication.getAreaMap('学校', 'school');
                    BMapApplication.getAreaMap('超市', 'shop');
                    BMapApplication.getAreaMap('医院', 'yiyuan');
                    BMapApplication.getAreaMap('市场', 'life');
                    BMapApplication.getAreaMap('娱乐', 'yule');
                    BMapApplication.getAreaMap('餐饮', 'food');
                </script>
                <?php endif; ?>
            </table>
        </div>
        <div class="fy_img">
            <div class="title03"><span class="title-selected">地理位置</span></div>
            <iframe width="1180" height="600" frameborder="0" scrolling="no" src="<?php echo url('Api/map',['id'=>$info['id'],'model'=>'estate','lat'=>$info['lat'],'lng'=>$info['lng']]); ?>" id="main" style="height: 500px; width: 1180px;"></iframe>
        </div>
    </div>

</div>
<link rel="stylesheet" href="__PUBLIC__/js/photo/css/prettyPhoto.css">
<script src="__PUBLIC__/js/photo/jquery.prettyPhoto.js"></script>
<script>
    $(function(){
        $("a[rel^='prettyPhoto']").prettyPhoto();

    });
</script>

<div class="footer clearfix">
    <div class="main">
        <div class="footer_n1">
            <span>服务热线：<?php echo $site['telphone']; ?></span>
            <ul>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 2): if(!(empty($vo['url']) || (($vo['url'] instanceof \think\Collection || $vo['url'] instanceof \think\Paginator ) && $vo['url']->isEmpty()))): $url = $vo['url']; else: if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; endif; ?>
                <li><a target="<?php echo $vo['open_type']; ?>" href="<?php echo $url; ?>"><?php echo $vo['title']; ?></a> </li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="footer_n2 overflow_h">
            <div class="tab02 overflow_h">
                <ul class="idTabs" id="recmond-tab">
                    <li><a href="javascript:;" class="selected"><?php echo $cityInfo['name']; ?>新房推荐</a></li>
                    <li><a href="javascript:;"><?php echo $cityInfo['name']; ?>二手房推荐</a></li>
                    <li><a href="javascript:;">友情链接</a></li>
                </ul>
            </div>
            <div id="recmond-box">
            <div class="f_n3" id="second01">
                <ul>
                    <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo url('Loupan/index',['area'=>$vo['id']]); ?>" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?>新房</a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="f_n3" id="second03" style="display:none">
                <ul>
                    <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo url('Second/index',['area'=>$vo['id']]); ?>" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?>二手房</a></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="f_n3" id="second04" style="display:none">
                <ul>
                    <?php $obj = model("link");$obj->where("status=1");$obj->field("name,url");$obj->order("ordid asc,id desc");$name = $obj->limit(50)->select();if(is_array( $name ) || $name  instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "暂无数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <li><a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>" target="_blank"><?php echo $vo['name']; ?></a></li>
                    <?php endforeach; endif; else: echo "暂无数据" ;endif; ?>
                </ul>
            </div>
            </div>
        </div>
        <div class="footer_n3 clearfix">
            <div class="footer_n3_1">
                <p>Copyright © <?php echo date("Y"); ?> <?php echo config('url_domain_root'); ?>. All Rights Reserved ICP备案号：<?php echo $site['icp']; ?></p>
                <p>公司名称：<?php echo $site['companyname']; ?></p>
            </div>
            <div class="footer_n3_2" >
                <ul>
                    <li>
                        <span><img src="<?php echo $site['weixin_pic']; ?>" width="90" height="90"></span>
                        <p>关注<?php echo $site['title']; ?>微信</p>
                    </li>
                </ul>
            </div>
        </div>

    </div>
</div>
<?php echo $site['countcode']; ?>
<script src="__PUBLIC__/js/plugins/jquery.lazyload.js"></script>
<script>
    $(function(){
        $("img.lazy").lazyload({
            threshold : 100,
            effect : "fadeIn"
        });
        $('.city-box').bind('click',function(){
            $('#CPM').toggle();
        });
        $('.close_btn').bind('click',function(){
            $('#CPM').hide();
        });
        $("#recmond-tab li").bind('click',function(){
            var index = $(this).index();
            $(this).find('a').addClass('selected').parent().siblings().find('a').removeClass('selected');
            $("#recmond-box").children().eq(index).show().siblings().hide();
        });
    });
</script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
    $(function(){
        $('#search-btn').bind('click',function(){
            var keyword = $('#keyword').val();
            if(keyword.length==0){
                layer.msg('请填写楼盘关键词',{icon:2});
                return false;
            }
            $('#search-form').submit();
        });
    });
</script>
</body>
</html>
